<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>  

<jsp:include page="helpers/layout_header.jsp"></jsp:include>

<%-- body --%>
<jsp:include page="helpers/header_admin.jsp" />

<div id="div-cadastro-evento" class="row">
	<form:form id="form-cadastro" class="custom" action="cadastrarAtualizarEvento" method="post" modelAttribute="evento">
		<form:hidden id="id_evento" path="id"/>
		<form:hidden id="codigo_evento" path="codigo"/>
		<h1>Cadastro de Evento</h1>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="nome">Nome</label>
				<form:input type="text" path="nome" value="" />
			</div>
		</div>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="dtInicio">Data de inicio</label>
				<form:input type="date" path="dtInicio" value="" />
			</div>
		</div>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="dtFim">Data do final</label>
				<form:input type="date" path="dtFim" value="" />
			</div>
		</div>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="qtdTickets">Quantidade de Tickets</label>
				<form:input type="text" path="qtdTickets" value="" />
			</div>
		</div>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="valorTicket">Valor dos Tickets</label>
				<form:input type="text" path="valorTicket" value="" />
			</div>
		</div>
		<div class="row">
			<div class="large-6 small-6">
				<button id="bt-cadastro" type="submit" class="button radius right">Cadastrar</button>
			</div>
			<div class="large-6 small-6">
				<a href="/unb-museu" class="button radius alert right">Cancelar</a>
			</div>
		</div>
	</form:form>
</div>

<div class="row mensagens">
	<div data-alert="" class="alert-box secondary round processando" style="display: none;">
	  Aguarde enquanto sua requisição é processada
	</div>
	<div data-alert="" class="alert-box success round sucesso" style="display: none;">
		Sucesso.
	</div>
	<div data-alert="" class="alert-box alert round erro" style="display: none;">
	  
	</div>
</div>

<%-- /body --%>

<jsp:include page="helpers/layout_footer.jsp"></jsp:include>

<script type="text/javascript" src="resources/js/views/cadastro_evento.js" ></script>